package com.canyou.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import javax.servlet.http.HttpServletRequest;

/**
 * @author cd
 */
@Getter
public class UserLoginEvent extends ApplicationEvent {

    private HttpServletRequest request;
    private int loginStatus;
    private String errorMsg;
    private String userName;

    public UserLoginEvent(Object source, HttpServletRequest request, int loginStatus, String errorMsg, String userName) {
        super(source);
        this.request = request;
        this.loginStatus = loginStatus;
        this.errorMsg = errorMsg;
        this.userName = userName;
    }
}
